package demo1;

public class Demo1Test {
    protected int a = 666;
    protected void printA(){
        System.out.println(this.a);
    }

    public static void main(String[] args) {
        //同一个类中访问protected成员
        Demo1Test t1=new Demo1Test();
        t1.printA();//666
    }
}
